Mercurial > hg > graal-compiler
comparison src/share/vm/utilities/yieldingWorkgroup.hpp @ 7434:32164d89fe9c
8004845: Catch incorrect usage of new and delete during compile time for value objects and stack objects
Summary: Makes the "new" and "delete" operator of _ValueObj and StackObj private
Reviewed-by: dholmes, coleenp
Contributed-by: erik.helin@oracle.com
author | brutisso |
---|---|
date | Mon, 17 Dec 2012 15:25:26 +0100 |
parents | 441e946dc1af |
children | db9981fd3124 |
comparison
equal
deleted
inserted
replaced
7433:730cc4ddd550 | 7434:32164d89fe9c |
---|---|
104 // Constructor and desctructor: only construct subclasses. | 104 // Constructor and desctructor: only construct subclasses. |
105 YieldingFlexibleGangTask(const char* name): FlexibleGangTask(name), | 105 YieldingFlexibleGangTask(const char* name): FlexibleGangTask(name), |
106 _status(INACTIVE), | 106 _status(INACTIVE), |
107 _gang(NULL) { } | 107 _gang(NULL) { } |
108 | 108 |
109 virtual ~YieldingFlexibleGangTask() { } | 109 ~YieldingFlexibleGangTask() { } |
110 | 110 |
111 friend class YieldingFlexibleWorkGang; | 111 friend class YieldingFlexibleWorkGang; |
112 friend class YieldingFlexibleGangWorker; | 112 friend class YieldingFlexibleGangWorker; |
113 NOT_PRODUCT(virtual bool is_YieldingFlexibleGang_task() const { | 113 NOT_PRODUCT(virtual bool is_YieldingFlexibleGang_task() const { |
114 return true; | 114 return true; |