Mercurial > hg > truffle
comparison src/share/vm/memory/allocation.cpp @ 14232:183bd5c00828
8028468: Add inlining information into ciReplay
Summary: Allow dump and replay inlining for specified method during a program execution.
Reviewed-by: roland, twisti
author | kvn |
---|---|
date | Wed, 08 Jan 2014 10:25:50 -0800 |
parents | 9758d9f36299 |
children | db1ff6781ab4 40353abd7984 a9becfeecd1b |
comparison
equal
deleted
inserted
replaced
14231:303c352ba1a8 | 14232:183bd5c00828 |
---|---|
138 | 138 |
139 #ifdef ASSERT | 139 #ifdef ASSERT |
140 void ResourceObj::set_allocation_type(address res, allocation_type type) { | 140 void ResourceObj::set_allocation_type(address res, allocation_type type) { |
141 // Set allocation type in the resource object | 141 // Set allocation type in the resource object |
142 uintptr_t allocation = (uintptr_t)res; | 142 uintptr_t allocation = (uintptr_t)res; |
143 assert((allocation & allocation_mask) == 0, "address should be aligned to 4 bytes at least"); | 143 assert((allocation & allocation_mask) == 0, err_msg("address should be aligned to 4 bytes at least: " PTR_FORMAT, res)); |
144 assert(type <= allocation_mask, "incorrect allocation type"); | 144 assert(type <= allocation_mask, "incorrect allocation type"); |
145 ResourceObj* resobj = (ResourceObj *)res; | 145 ResourceObj* resobj = (ResourceObj *)res; |
146 resobj->_allocation_t[0] = ~(allocation + type); | 146 resobj->_allocation_t[0] = ~(allocation + type); |
147 if (type != STACK_OR_EMBEDDED) { | 147 if (type != STACK_OR_EMBEDDED) { |
148 // Called from operator new() and CollectionSetChooser(), | 148 // Called from operator new() and CollectionSetChooser(), |