status of OpenJDK on Haiku
Hamish Morrison
hamishm53 at gmail.com
Fri Apr 27 15:48:32 UTC 2018
On Fri, Apr 27, 2018 at 6:55 AM, Humdinger <humdingerb at googlemail.com> wrote:
> On IRC the guys said:
>
> [19:42] <Diver1> #define MAX_PATH B_FILE_NAME_LENGTH
> [19:42] <Diver1>
> https://bitbucket.org/hamishm/haiku-jdk8u-hotspot/src/e5ab6f7ff24129d8ee25dd8a1d84c329a6e4bc18/src/os/haiku/vm/os_haiku.cpp?at=default&fileviewer=file-view-default#os_haiku.cpp-106
> [19:43] <DeadYak> uh...that's problematic
> [19:43] <DeadYak> should be B_PATH_NAME_LENGTH
>
> I tried using B_PATH_NAME_LENGTH instead, no difference.
There might be other occurrences of B_FILE_NAME_LENGTH in the source
code. I believe there's also a JVM_PATHLEN define in jvm_haiku.h - but
that one's already using the correct definition.
> All that certification business is done in the recipe's INSTALL() section. I
> wonder why it should strain the available memory...
Java is generally quite liberal in allocating large chunks of memory
to use for its heap, even if it doesn't use it right away. There are
various options you can pass to the JVM to limit the heap size for
these steps. You might want to try tweaking various options e.g.
-Xms256m -Xmx512m which would give you an initial heap of 256MB and a
maximum of 512MB.
More information about the haiku-port-dev
mailing list