Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 364555

Summary: Minor fix for >2GB plain objects
Product: [Tools] MAT Reporter: Andrew Johnson <andrew_johnson>
Component: CoreAssignee: Project Inbox <mat.core-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Andrew Johnson CLA 2011-11-23 04:44:22 EST
The a2s index is used for huge or variable sized plain objects as well as arrays.

The a2s index encodes >2GB sizes as negative ints. The garbageCleaner doesn't properly decode these sizes. DTFJIndexBuilder doesn't take account that the current ClassImpl.setHeapSizePerInstance() might not be able to store >2GB sizes.
Comment 1 Andrew Johnson CLA 2011-11-23 04:46:25 EST
Use the proper size in GarbageCleaner and check that the IClass stored the instance size properly.
Comment 2 Andrew Johnson CLA 2011-11-23 07:10:07 EST
Fix applied.