thanks Karel and Bryan, I succeeded to compile JDK 1.8 with "ulimit -d 4800000". (didn't check how many is minimum required, just 4800000 (KB) was enough for my environment.)
% (ulimit -d 48000000 ; make package ...) time(cpu-seconds) unlimited file(blocks) unlimited coredump(blocks) unlimited data(kbytes) 4800000 stack(kbytes) 4096 lockedmem(kbytes) 331940 memory(kbytes) 994268 nofiles(descriptors) 512 processes 256 ===> Checking files for jdk-1.8.0.45 `/usr/ports/distfiles/jdk/openjdk-8u45b14-bsd-port-20150618.tar.xz' is up to date. >> (SHA256) jdk/openjdk-8u45b14-bsd-port-20150618.tar.xz: OK ...... ----- Build times ------- Start 2016-02-07 23:25:44 End 2016-02-08 02:53:36 00:01:37 corba 00:01:46 demos 00:08:35 docs 00:50:32 hotspot 00:05:02 images 00:00:55 jaxp 00:01:45 jaxws 02:15:28 jdk 00:01:29 langtools 00:00:42 nashorn 03:27:52 TOTAL ------------------------- Finished building OpenJDK for target 'all' ===> Faking installation for jdk-1.8.0.45 ...... (snip) -- yozo.