diff --git a/.hgtags-top-repo b/.hgtags-top-repo index ea493dc589018fd5a399736042c0a535816b2a44..f2ac97d9ed953e03806afae33c2d4705cc7a2ae0 100644 --- a/.hgtags-top-repo +++ b/.hgtags-top-repo @@ -33,3 +33,4 @@ aea0ace7a1e43619800931d42bbf69c579361c2d jdk7-b55 ba12117a5e6c918578d6b2a8c693232a33289024 jdk7-b56 ffd09e767dfa6d21466183a400f72cf62d53297f jdk7-b57 59b497130f82ec809c245ffb5e521e3a5fabf8af jdk7-b58 +030142474602b4a067662fffc0c8e541de5a78df jdk7-b59 diff --git a/hotspot/.hgtags b/hotspot/.hgtags index 2d7b8ac7ac78183d4344b00a5824ef0b7d37bbd2..679a827bb42a2aa05e036d1b084161f3ebd0a39d 100644 --- a/hotspot/.hgtags +++ b/hotspot/.hgtags @@ -33,3 +33,4 @@ f8e839c086152da70d6ec5913ba6f9f509282e8d jdk7-b55 a3fd9e40ff2e854f6169eb6d09d491a28634d04f jdk7-b56 f4cbf78110c726919f46b59a3b054c54c7e889b4 jdk7-b57 53d9bf689e80fcc76b221bbe6c5d58e08b80cbc6 jdk7-b58 +c55be0c7bd32c016c52218eb4c8b5da8a75450b5 jdk7-b59 diff --git a/hotspot/make/README b/hotspot/make/README deleted file mode 100644 index 19afb261fc372672ca6e7cc4382e0540b4de494e..0000000000000000000000000000000000000000 --- a/hotspot/make/README +++ /dev/null @@ -1,14 +0,0 @@ -README: - This file should be located at the top of the hotspot Mercurial repository. - - See http://openjdk.java.net/ for more information about the OpenJDK. - - See ../README-builds.html for complete details on build machine requirements. - -Simple Build Instructions: - - cd make && gnumake - - The files that will be imported into the jdk build will be in the "build" - directory. - diff --git a/hotspot/make/linux/makefiles/gcc.make b/hotspot/make/linux/makefiles/gcc.make index 13e96b31d2c59dab7ee8a042ef1ed2546cfeb7a1..537ce95ffa09fe9d7a3eee0cea2dda15ed97e6fe 100644 --- a/hotspot/make/linux/makefiles/gcc.make +++ b/hotspot/make/linux/makefiles/gcc.make @@ -171,3 +171,9 @@ DEBUG_CFLAGS += $(DEBUG_CFLAGS/$(BUILDARCH)) ifeq ($(DEBUG_CFLAGS/$(BUILDARCH)),) DEBUG_CFLAGS += -gstabs endif + +# DEBUG_BINARIES overrides everything, use full -g debug information +ifeq ($(DEBUG_BINARIES), true) + DEBUG_CFLAGS = -g + CFLAGS += $(DEBUG_CFLAGS) +endif diff --git a/hotspot/make/linux/makefiles/jsig.make b/hotspot/make/linux/makefiles/jsig.make index 9189fa5930fc6e82c36b2ce6be260144c1d22f59..edf4f77cca9771b7ae6204af2555ce2272663304 100644 --- a/hotspot/make/linux/makefiles/jsig.make +++ b/hotspot/make/linux/makefiles/jsig.make @@ -41,10 +41,15 @@ LIBJSIG_MAPFILE = $(MAKEFILES_DIR)/mapfile-vers-jsig LFLAGS_JSIG += -D_GNU_SOURCE -D_REENTRANT $(LDFLAGS_HASH_STYLE) +# DEBUG_BINARIES overrides everything, use full -g debug information +ifeq ($(DEBUG_BINARIES), true) + JSIG_DEBUG_CFLAGS = -g +endif + $(LIBJSIG): $(JSIGSRCDIR)/jsig.c $(LIBJSIG_MAPFILE) @echo Making signal interposition lib... $(QUIETLY) $(CC) $(SYMFLAG) $(ARCHFLAG) $(SHARED_FLAG) $(PICFLAG) \ - $(LFLAGS_JSIG) -o $@ $< -ldl + $(LFLAGS_JSIG) $(JSIG_DEBUG_CFLAGS) -o $@ $< -ldl install_jsig: $(LIBJSIG) @echo "Copying $(LIBJSIG) to $(DEST_JSIG)" diff --git a/hotspot/make/linux/makefiles/saproc.make b/hotspot/make/linux/makefiles/saproc.make index faf677863b8375a4a2a4395df7c693eb0715a6d9..11a100ad0518bc85ece17b3dbff763dd9a9f6a56 100644 --- a/hotspot/make/linux/makefiles/saproc.make +++ b/hotspot/make/linux/makefiles/saproc.make @@ -43,6 +43,11 @@ SAMAPFILE = $(SASRCDIR)/mapfile DEST_SAPROC = $(JDK_LIBDIR)/$(LIBSAPROC) +# DEBUG_BINARIES overrides everything, use full -g debug information +ifeq ($(DEBUG_BINARIES), true) + SA_DEBUG_CFLAGS = -g +endif + # if $(AGENT_DIR) does not exist, we don't build SA # also, we don't build SA on Itanium. @@ -67,6 +72,7 @@ $(LIBSAPROC): $(SASRCFILES) $(SAMAPFILE) -I$(BOOT_JAVA_HOME)/include/$(Platform_os_family) \ $(SASRCFILES) \ $(SA_LFLAGS) \ + $(SA_DEBUG_CFLAGS) \ -o $@ \ -lthread_db diff --git a/hotspot/src/share/vm/adlc/filebuff.hpp b/hotspot/src/share/vm/adlc/filebuff.hpp index 6967d64a39cdb4ab209a88f58c6fe45b3e237587..30e567b3aec0e2da20ad09341f0c045cce8bdca1 100644 --- a/hotspot/src/share/vm/adlc/filebuff.hpp +++ b/hotspot/src/share/vm/adlc/filebuff.hpp @@ -73,7 +73,7 @@ class FileBuff { // This converts a pointer into the buffer to a file offset. It only works // when the pointer is valid (i.e. just obtained from getline()). - long getoff(const char* s) { return _bufoff + (s - _buf); } + long getoff(const char* s) { return _bufoff + (long)(s - _buf); } }; //------------------------------FileBuffRegion--------------------------------- diff --git a/make/sanity-rules.gmk b/make/sanity-rules.gmk index c3e900d615508c2120ccc760f2cf2058e1286ee3..2119af3b0e4a8e28c86512eed4191bc03851e15d 100644 --- a/make/sanity-rules.gmk +++ b/make/sanity-rules.gmk @@ -348,6 +348,8 @@ endif ifeq ($(SPONSORS_SRC_AVAILABLE), true) @$(ECHO) " BUILD_SPONSORS = $(BUILD_SPONSORS) " >> $(MESSAGE_FILE) endif + @$(ECHO) " DEBUG_CLASSFILES = $(DEBUG_CLASSFILES) " >> $(MESSAGE_FILE) + @$(ECHO) " DEBUG_BINARIES = $(DEBUG_BINARIES) " >> $(MESSAGE_FILE) @$(ECHO) "" >> $(MESSAGE_FILE) .PHONY: sanity settings pre-sanity insane \