From: Ivan Maidanski Date: Sun, 23 Dec 2018 07:50:15 +0000 (+0300) Subject: Turn on memory unmapping in BCC/DMC/NT/WCC makefiles and Makefile.direct X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8382d5ad371cb127f45c8340c78decc9c077b718;p=gc Turn on memory unmapping in BCC/DMC/NT/WCC makefiles and Makefile.direct * BCC_MAKEFILE (defines): Add -D USE_MUNMAP. * NT_MAKEFILE (CFLAGS_DEFAULT): Likewise. * WCC_MAKEFILE [MSWIN32] (DEFS): Likewise. * digimars.mak (DEFINES): Likewise. * Makefile.direct (CFLAGS): Add -D USE_MMAP -D USE_MUNMAP. --- diff --git a/BCC_MAKEFILE b/BCC_MAKEFILE index 4e58e25e..f6398c1d 100644 --- a/BCC_MAKEFILE +++ b/BCC_MAKEFILE @@ -15,7 +15,7 @@ cflags= -O2 -R -v- -vi -H -H=gc.csm -I$(bcinclude);$(gcinclude1) -L$(bclib) \ -w-pro -w-aus -w-par -w-ccc -w-inl -w-rch -a4 defines= -DALL_INTERIOR_POINTERS -DNO_EXECUTE_PERMISSION \ -DENABLE_DISCLAIM -DGC_ATOMIC_UNCOLLECTABLE -DJAVA_FINALIZATION \ - -DGC_GCJ_SUPPORT -DGC_OPERATOR_NEW_ARRAY + -DGC_GCJ_SUPPORT -DGC_OPERATOR_NEW_ARRAY -DUSE_MUNMAP .c.obj: $(cc) @&&| diff --git a/Makefile.direct b/Makefile.direct index 4bfcaeef..7422cd0c 100644 --- a/Makefile.direct +++ b/Makefile.direct @@ -48,7 +48,7 @@ CFLAGS_EXTRA= CFLAGS= -O -I$(srcdir)/include -I$(AO_SRC_DIR)/src \ -DALL_INTERIOR_POINTERS -DENABLE_DISCLAIM -DGC_ATOMIC_UNCOLLECTABLE \ -DGC_GCJ_SUPPORT -DJAVA_FINALIZATION -DNO_EXECUTE_PERMISSION \ - $(CFLAGS_FOR_PIC) $(CFLAGS_EXTRA) + -DUSE_MMAP -DUSE_MUNMAP $(CFLAGS_FOR_PIC) $(CFLAGS_EXTRA) # To build the collector with threads support, add to the above: # -DGC_THREADS -DPARALLEL_MARK -DTHREAD_LOCAL_ALLOC diff --git a/NT_MAKEFILE b/NT_MAKEFILE index 349d40eb..103f6fec 100644 --- a/NT_MAKEFILE +++ b/NT_MAKEFILE @@ -76,7 +76,7 @@ LINK_GC=$(link) $(ldebug) $(LINK_DLL_FLAGS) CFLAGS_SPECIFIC=$(CFLAGS_DEBUG) $(CFLAGS_GCDLL) $(CFLAGS_MT) -CFLAGS_DEFAULT=-DALL_INTERIOR_POINTERS -DENABLE_DISCLAIM -DGC_ATOMIC_UNCOLLECTABLE -DGC_GCJ_SUPPORT -DJAVA_FINALIZATION -DNO_EXECUTE_PERMISSION +CFLAGS_DEFAULT=-DALL_INTERIOR_POINTERS -DENABLE_DISCLAIM -DGC_ATOMIC_UNCOLLECTABLE -DGC_GCJ_SUPPORT -DJAVA_FINALIZATION -DNO_EXECUTE_PERMISSION -DUSE_MUNMAP # Make sure that .cc is not viewed as a suffix. It is for VC++2005, but # not earlier versions. We can deal with either, but not inconsistency. diff --git a/WCC_MAKEFILE b/WCC_MAKEFILE index bf4ec476..61a1db53 100644 --- a/WCC_MAKEFILE +++ b/WCC_MAKEFILE @@ -48,6 +48,7 @@ SYSTEM=Unknown SYSFLAG=-DDOS4GW -bt=dos !else ifdef MSWIN32 SYSFLAG=-DMSWIN32 -bt=nt +DEFS=$(DEFS) -DUSE_MUNMAP !else ifdef OS2 SYSFLAG=-DOS2 -bt=os2 !else diff --git a/digimars.mak b/digimars.mak index 2f098b9c..1388d353 100644 --- a/digimars.mak +++ b/digimars.mak @@ -2,7 +2,7 @@ # compiler from www.digitalmars.com # Written by Walter Bright -DEFINES=-D_WINDOWS -DGC_DLL -DGC_THREADS -DGC_DISCOVER_TASK_THREADS -DALL_INTERIOR_POINTERS -DENABLE_DISCLAIM -DGC_ATOMIC_UNCOLLECTABLE -DGC_GCJ_SUPPORT -DJAVA_FINALIZATION -DNO_EXECUTE_PERMISSION +DEFINES=-D_WINDOWS -DGC_DLL -DGC_THREADS -DGC_DISCOVER_TASK_THREADS -DALL_INTERIOR_POINTERS -DENABLE_DISCLAIM -DGC_ATOMIC_UNCOLLECTABLE -DGC_GCJ_SUPPORT -DJAVA_FINALIZATION -DNO_EXECUTE_PERMISSION -DUSE_MUNMAP CFLAGS=-Iinclude -Ilibatomic_ops\src $(DEFINES) -wx -g LFLAGS=/ma/implib/co CC=sc