RFR(T) 8218566: NMT: missing memory tag for assert poison page

Thomas Stüfe thomas.stuefe at gmail.com
Wed Feb 6 16:29:48 UTC 2019


Hmm...

the patch is fine, but we should fix os::reserve_memory:

we have

  static char*  reserve_memory(size_t bytes, char* addr = 0,
                               size_t alignment_hint = 0, int file_desc =
-1);
  static char*  reserve_memory(size_t bytes, char* addr,
                               size_t alignment_hint, MEMFLAGS flags);

one version registers the memory with NMT, one does not. It would be better
if both did, like os::malloc does in all its variants, instead of having to
fix up the callsites...

Cheers, Thomas




On Wed, Feb 6, 2019 at 5:15 PM <zgu at redhat.com> wrote:

> Please review the trivial change to tag assert poison page.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8218566
> Webrev: http://cr.openjdk.java.net/~zgu/JDK-8218566/webrev.00/
>
> Test:
>   hotspot_nmt on Linux x64 (fastdebug and release),
>   passed all except runtime/NMT/CheckForProperDetailStackTrace.java
>   (JDK-8218458) with release build.
>
> Thanks,
>
> -Zhengyu
>


More information about the hotspot-runtime-dev mailing list