Mercurial > hg > truffle
comparison src/share/vm/memory/resourceArea.hpp @ 3939:f6f3bb0ee072
7088955: add C2 IR support to the SA
Reviewed-by: kvn
author | never |
---|---|
date | Sun, 11 Sep 2011 14:48:24 -0700 |
parents | f95d63e2154a |
children | f08d439fab8c |
comparison
equal
deleted
inserted
replaced
3938:e6b1331a51d2 | 3939:f6f3bb0ee072 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2011, 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. |
50 //------------------------------ResourceArea----------------------------------- | 50 //------------------------------ResourceArea----------------------------------- |
51 // A ResourceArea is an Arena that supports safe usage of ResourceMark. | 51 // A ResourceArea is an Arena that supports safe usage of ResourceMark. |
52 class ResourceArea: public Arena { | 52 class ResourceArea: public Arena { |
53 friend class ResourceMark; | 53 friend class ResourceMark; |
54 friend class DeoptResourceMark; | 54 friend class DeoptResourceMark; |
55 friend class VMStructs; | |
55 debug_only(int _nesting;) // current # of nested ResourceMarks | 56 debug_only(int _nesting;) // current # of nested ResourceMarks |
56 debug_only(static int _warned;) // to suppress multiple warnings | 57 debug_only(static int _warned;) // to suppress multiple warnings |
57 | 58 |
58 public: | 59 public: |
59 ResourceArea() { | 60 ResourceArea() { |