RFC: architecture define probably masks variable names in header files

Alan Bateman Alan.Bateman at Sun.COM
Thu Jan 24 10:33:56 UTC 2008


Kelly O'Hair wrote:
> I very much suspect that this -D$(ARCH) could be removed with no 
> consequences.
> The difficult part would be verifying it.
>
> C macros are a very powerful tool, but some of the global names we 
> have chosen
>
> over the years have come back to haunt us. :^( 
src/solaris/hpi/native_threads is one place that seems to depend on 
$(ARCH) being defined. That code is part of the HPI "Thread" interface. 
As I recall, HotSpot doesn't use the HPI's "Thread" or "Memory" 
interfaces and so this code probably hasn't been used since the 
transition to HotSpot back in 1.3.

-Alan.



More information about the build-dev mailing list