Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Increasing PDOMCPPParameter.RECORD_SIZE to 23

PDOMCPPParameter.java contains the following below the declaration
of RECORD_SIZE:

    static {
        assert RECORD_SIZE <= 22; // 23 would yield a 32-byte block
    }

First, what does the comment mean? How does a 23-byte record yield 
a 32-byte block?

Second, to fix bug 432701 [1], we need to store the default value
of a function parameter in the index. This would involve replacing
the 1-byte "flags" field with a 6-byte "value" field, which would
increase the size of the record to 23. Should I do that (and remove
the assertion), or is there something else I can do?

Thanks,
Nate

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=432701
 		 	   		  

Back to the top