How to build changes made in "os" directory files?
Thomas Schatzl
thomas.schatzl at oracle.com
Tue Sep 8 08:39:27 UTC 2020
Hi,
On 08.09.20 10:29, Ofir Gordon wrote:
> Hello everyone,
>
> I'm working on the jdk14 source code, and I'm trying to make some changes
> in the gc code. Any changes that I make in files under the "shared" code
> directory appear in the compiled program as expected.
> The problem is when I'm trying to change the code in a file under the "os"
> directory (specifically "os_aix"), the changes don't seem to appear in the
> compiled program.
>
> I build the program with the `make images` command and use the output
> program to run a simple java program.
>
> What is the correct way of making changes in this part of the code?
>
> To elaborate a little more, my intention is to intervene in the part where
> a new thread is created for a gc task, in order to bind this thread to a
> specific core. If there is a simple way to do so or if the "os_aix" file is
> not the correct place, I would be happy to hear your advice.
The OS files contain OS dependent code, with the suffix indicating the
OS it is for. Sources in the os/aix directory like os_aix.* are related
to the AIX operating system. So unless you compile for AIX, it is
natural that changes there do not show up.
Not sure what OS you are targeting, but e.g. Linux code is located
either in os/posix or os/linux.
Hth,
Thomas
More information about the hotspot-dev
mailing list