src/share/vm/runtime/handles.cpp

changeset 6240
9b4ce069642e
parent 5614
9758d9f36299
child 6039
bd3237e0e18d
equal deleted inserted replaced
6239:2a907fd129cb 6240:9b4ce069642e
1 /* 1 /*
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
177 177
178 // Unlink this from the thread 178 // Unlink this from the thread
179 _thread->set_last_handle_mark(previous_handle_mark()); 179 _thread->set_last_handle_mark(previous_handle_mark());
180 } 180 }
181 181
182 void* HandleMark::operator new(size_t size) { 182 void* HandleMark::operator new(size_t size) throw() {
183 return AllocateHeap(size, mtThread); 183 return AllocateHeap(size, mtThread);
184 } 184 }
185 185
186 void* HandleMark::operator new [] (size_t size) { 186 void* HandleMark::operator new [] (size_t size) throw() {
187 return AllocateHeap(size, mtThread); 187 return AllocateHeap(size, mtThread);
188 } 188 }
189 189
190 void HandleMark::operator delete(void* p) { 190 void HandleMark::operator delete(void* p) {
191 FreeHeap(p, mtThread); 191 FreeHeap(p, mtThread);

mercurial