--- a/src/hotspot/share/runtime/os.hpp Wed Sep 11 14:16:27 2019 +0200
+++ b/src/hotspot/share/runtime/os.hpp Wed Sep 11 14:16:30 2019 +0200
@@ -740,6 +740,7 @@
static void* realloc (void *memblock, size_t size, MEMFLAGS flag, const NativeCallStack& stack);
static void* realloc (void *memblock, size_t size, MEMFLAGS flag);
+ // handles NULL pointers
static void free (void *memblock);
static char* strdup(const char *, MEMFLAGS flags = mtInternal); // Like strdup
// Like strdup, but exit VM when strdup() returns NULL