src/share/vm/memory/resourceArea.hpp

changeset 7074
833b0f92429a
parent 5409
dbc0b5dc08f5
child 7535
7ae4e26cb1e0
child 9055
e4e58811ed1b
     1.1 --- a/src/share/vm/memory/resourceArea.hpp	Wed Aug 27 09:36:55 2014 +0200
     1.2 +++ b/src/share/vm/memory/resourceArea.hpp	Wed Aug 27 08:19:12 2014 -0400
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -49,11 +49,11 @@
    1.11    debug_only(static int _warned;)       // to suppress multiple warnings
    1.12  
    1.13  public:
    1.14 -  ResourceArea() {
    1.15 +  ResourceArea() : Arena(mtThread) {
    1.16      debug_only(_nesting = 0;)
    1.17    }
    1.18  
    1.19 -  ResourceArea(size_t init_size) : Arena(init_size) {
    1.20 +  ResourceArea(size_t init_size) : Arena(mtThread, init_size) {
    1.21      debug_only(_nesting = 0;);
    1.22    }
    1.23  
    1.24 @@ -64,7 +64,7 @@
    1.25      if (UseMallocOnly) {
    1.26        // use malloc, but save pointer in res. area for later freeing
    1.27        char** save = (char**)internal_malloc_4(sizeof(char*));
    1.28 -      return (*save = (char*)os::malloc(size, mtThread));
    1.29 +      return (*save = (char*)os::malloc(size, mtThread, CURRENT_PC));
    1.30      }
    1.31  #endif
    1.32      return (char*)Amalloc(size, alloc_failmode);

mercurial