How to build changes made in "os" directory files?
Aleksey Shipilev
shade at redhat.com
Tue Sep 8 09:09:11 UTC 2020
On 9/8/20 11:03 AM, Ofir Gordon wrote:
> Can you please explain what you meant in the last comment?
> If I don't need that, how can I implement this change in the code I'm using?
> Say, if I want to add code that binds a new created thread to a specific core (I'm familiar with the
> c++ code required to do so, but where should I add it in the hotspot source code?)
Then add it only in the platform-specific code related to the platform where you are building. That
would be simpler for prototyping. If/when your prototype graduates to something that might be
included into the tree, _then_ figure out what to change in other platform-specific code, and how to
test it.
> Regarding the platform, I'm currently just testing it on a linux x86_64 bit system, but the plan is
> to run it on a simulated arm 64bit architecture
So Linux x86_64 means these are built:
src/hotspot/share/
src/hotspot/cpu/x86/
src/hotspot/os/linux/
src/hotspot/os/posix/ (maybe?)
src/hotspot/os_cpu/linux_x86/
See? It selects x86 from "cpu", linux from "os", and linux_x86 from "os_cpu".
--
Thanks,
-Aleksey
More information about the hotspot-dev
mailing list