1.1 --- a/src/share/vm/memory/memRegion.cpp Wed Aug 27 09:36:55 2014 +0200 1.2 +++ b/src/share/vm/memory/memRegion.cpp Wed Aug 27 08:19:12 2014 -0400 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2000, 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 @@ -103,11 +103,13 @@ 1.11 } 1.12 1.13 void* MemRegion::operator new(size_t size) throw() { 1.14 - return (address)AllocateHeap(size, mtGC, 0, AllocFailStrategy::RETURN_NULL); 1.15 + return (address)AllocateHeap(size, mtGC, CURRENT_PC, 1.16 + AllocFailStrategy::RETURN_NULL); 1.17 } 1.18 1.19 void* MemRegion::operator new [](size_t size) throw() { 1.20 - return (address)AllocateHeap(size, mtGC, 0, AllocFailStrategy::RETURN_NULL); 1.21 + return (address)AllocateHeap(size, mtGC, CURRENT_PC, 1.22 + AllocFailStrategy::RETURN_NULL); 1.23 } 1.24 void MemRegion::operator delete(void* p) { 1.25 FreeHeap(p, mtGC);