Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8252398

minimal debug build broken - CURRENT_PC undefined in resourceArea.inline.hpp

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 16
    • None
    • hotspot
    • None
    • b14

      /jdk2/jem/open/src/hotspot/share/memory/resourceArea.inline.hpp: In member function 'char* ResourceArea::allocate_bytes(size_t, AllocFailType)':
      /jdk2/jem/open/src/hotspot/share/memory/resourceArea.inline.hpp:36:55: error: 'CURRENT_PC' was not declared in this scope
           return (*save = (char*)os::malloc(size, mtThread, CURRENT_PC));

      ====== FIX
      $ hg diff
      diff -r 34a78b672b7c src/hotspot/share/memory/resourceArea.inline.hpp
      --- a/src/hotspot/share/memory/resourceArea.inline.hpp Fri Aug 21 02:03:53 2020 -0700
      +++ b/src/hotspot/share/memory/resourceArea.inline.hpp Wed Aug 26 13:27:32 2020 -0700
      @@ -26,6 +26,7 @@
       #define SHARE_MEMORY_RESOURCEAREA_INLINE_HPP
       
       #include "memory/resourceArea.hpp"
      +#include "services/memTracker.hpp"
       
       inline char* ResourceArea::allocate_bytes(size_t size, AllocFailType alloc_failmode) {

            iklam Ioi Lam
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: