United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6926697 "optimized" VM build failed: The type "AdapterHandlerTableIterator" is incomplete.
JDK-6926697 : "optimized" VM build failed: The type "AdapterHandlerTableIterator" is incomplete.

Details
Type:
Bug
Submit Date:
2010-02-16
Status:
Resolved
Updated Date:
2010-04-03
Project Name:
JDK
Resolved Date:
2010-03-02
Component:
hotspot
OS:
solaris_10
Sub-Component:
compiler
CPU:
sparc
Priority:
P4
Resolution:
Fixed
Affected Versions:
hs17
Fixed Versions:
hs17 (b10)

Related Reports
Backport:
Backport:
Relates:
Relates:

Sub Tasks

Description
% sh make/solaris/build.sh "optimized" $PWD
...
"/net/irkutsk/export/home/kvn/work2/hg/arrcp64/src/share/vm/runtime/sharedRuntime.cpp", line 2625: Error: In this declaration "iter" is of an incomplete type "AdapterHandlerTableIterator".
"/net/irkutsk/export/home/kvn/work2/hg/arrcp64/src/share/vm/runtime/sharedRuntime.cpp", line 2625: Error: The type "AdapterHandlerTableIterator" is incomplete.

                                    

Comments
EVALUATION

Regression after 6911204 fix.

AdapterHandlerTableIterator is defined only in debug VM
but it is used in all non product VM versions.

#ifdef ASSERT

int AdapterHandlerTable::_lookups;
int AdapterHandlerTable::_buckets;
int AdapterHandlerTable::_equals;
int AdapterHandlerTable::_hits;
int AdapterHandlerTable::_compact;

class AdapterHandlerTableIterator : public StackObj {

...

#ifndef PRODUCT
bool AdapterHandlerLibrary::contains(CodeBlob* b) {
  AdapterHandlerTableIterator iter(_adapters);
                                     
2010-02-16
EVALUATION

ChangeSet=http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/e7b1cc79bd25,ChangeRequest=6926697
                                     
2010-02-17
PUBLIC COMMENTS

Problem:
AdapterHandlerTableIterator is defined only in debug VM
but it is used in all non product VM versions.

Solution:
Define AdapterHandlerTableIterator class as non product instead of debug.
                                     
2010-02-17



Hardware and Software, Engineered to Work Together