Question about os::native_path

Pengfei Li (Arm Technology China) Pengfei.Li at arm.com
Thu Jan 24 10:10:45 UTC 2019


Hi,

>  inline char* os::native_path(char *path) {
>   return path;
> }
> 
> What is the purpose of this function? I think it is for a full native path, but the
> source code told me it is just itself.

This is the code in os_posix.cpp. There's another implementation in os_windows.cpp [1] which converts the path string to windows format. So we don't need to consider the platform at the call sites. ^_^

[1] http://hg.openjdk.java.net/jdk/jdk/file/091ed8f2e7d7/src/hotspot/os/windows/os_windows.cpp#l4572

--
Thanks,
Pengfei


More information about the hotspot-runtime-dev mailing list