Searched refs:nbytes (Results 1 - 25 of 60) sorted by relevance

123

/openjdk7/jdk/src/share/demo/jvmti/hprof/
H A Dhprof_blocks.c56 real_size(int alignment, int nbytes) argument
61 wasted = alignment - ( nbytes % alignment );
63 nbytes += wasted;
66 return nbytes;
69 /* Add a new current_block to the Blocks* chain, adjust size if nbytes big. */
71 add_block(Blocks *blocks, int nbytes) argument
78 HPROF_ASSERT(nbytes>0);
82 if ( nbytes > block_size ) {
83 block_size = real_size(blocks->alignment, nbytes);
121 blocks_alloc(Blocks *blocks, int nbytes) argument
[all...]
H A Dhprof_listener.c137 jint nbytes; local
139 nbytes = 0;
141 return nbytes;
143 while (nbytes < len) {
146 res = md_recv(f, buf + nbytes, (len - nbytes), 0);
156 nbytes += res;
158 return nbytes;
165 jint nbytes; local
167 nbytes
178 jint nbytes; local
191 jint nbytes; local
204 jint nbytes; local
[all...]
H A Ddebug_malloc.c187 #define rbytes_(nbytes) \
188 (size_t)( sizeof(Word) + round_up_(nbytes) + sizeof(Word) + warrant_space )
363 register int nbytes; local
366 nbytes = (int)size;
367 if ( nbytes > largest_size || largest_addr == NULL ) largest_size = nbytes;
374 nsize1_(mptr) = -nbytes;
375 nsize2_(mptr) = -nbytes;
376 tail_nsize1_(mptr) = -nbytes;
377 tail_nsize2_(mptr) = -nbytes;
426 int nbytes; local
531 size_t nbytes = -nsize1_(mptr); local
549 size_t nbytes; local
597 debug_malloc(size_t nbytes, const char *file, int line) argument
619 debug_realloc(void *uptr, size_t nbytes, const char *file, int line) argument
662 size_t nbytes; local
683 size_t nbytes; local
[all...]
H A Dhprof_blocks.h59 void * blocks_alloc(Blocks *blocks, int nbytes);
H A Dhprof_check.c416 check_heap_tags(struct LookupTable *utab, unsigned char *pstart, int nbytes) argument
440 while ( p < (pstart+nbytes) ) {
551 CHECK_FOR_ERROR(p==pstart+nbytes);
556 while ( p < (pstart+nbytes) ) {
693 " cid=0x%x, nbytes=%d\n",
822 CHECK_FOR_ERROR(p==pstart+nbytes);
846 check_tags(unsigned char *pstart, int nbytes) argument
860 while ( p < (pstart+nbytes) ) {
1082 CHECK_FOR_ERROR(p<=(pstart+nbytes));
1085 CHECK_FOR_ERROR(p==(pstart+nbytes));
1096 jlong nbytes; local
1131 int nbytes; local
[all...]
H A Dhprof_tls.c308 int nbytes; local
322 nbytes = (int)sizeof(FrameIndex)*(max_frames+1);
323 info->frames_buffer = HPROF_MALLOC(nbytes);
324 nbytes = (int)sizeof(jvmtiFrameInfo)*(max_frames+1);
325 info->jframes_buffer = HPROF_MALLOC(nbytes);
887 int nbytes; local
892 nbytes = (int)sizeof(jthread)*max_count;
893 threads = (jthread*)HPROF_MALLOC(nbytes);
894 nbytes = (int)sizeof(SerialNumber)*max_count;
895 serial_nums = (SerialNumber*)HPROF_MALLOC(nbytes);
1030 int nbytes; local
[all...]
H A Dhprof_io.c733 int nbytes; local
753 nbytes = md_read(prelude_fd, buf, sizeof(buf));
754 if ( nbytes < 0 ) {
755 system_error("read", nbytes, errno);
758 if (nbytes == 0) {
761 write_raw(buf, nbytes);
762 } while ( nbytes > 0 );
1704 int nbytes; local
1708 nbytes = 0;
1718 nbytes
1740 int nbytes; local
1871 int nbytes; local
[all...]
/openjdk7/hotspot/src/cpu/zero/vm/
H A Dicache_zero.hpp38 static void invalidate_range(address start, int nbytes) {} argument
/openjdk7/jdk/test/demo/jvmti/hprof/
H A DDefineClass.java48 int nbytes;
50 nbytes = fis.read(b, len, b.length-len);
51 if ( nbytes > 0 ) {
52 len += nbytes;
54 } while ( nbytes > 0 );
/openjdk7/jdk/src/share/classes/javax/imageio/stream/
H A DMemoryCache.java112 int nbytes = (int)Math.min(len, (long)left);
113 nbytes = stream.read(buf, offset, nbytes);
114 if (nbytes == -1) {
122 len -= nbytes;
123 length += nbytes;
124 offset += nbytes;
171 int nbytes = (int)Math.min(len, (long)(BUFFER_LENGTH - offset));
172 stream.write(buf, offset, nbytes);
174 len -= nbytes;
[all...]
H A DFileImageInputStream.java117 int nbytes = raf.read(b, off, len);
118 if (nbytes != -1) {
119 streamPos += nbytes;
121 return nbytes;
H A DFileImageOutputStream.java109 int nbytes = raf.read(b, off, len);
110 if (nbytes != -1) {
111 streamPos += nbytes;
113 return nbytes;
H A DFileCacheImageInputStream.java141 int nbytes =
143 if (nbytes == -1) {
148 cache.write(buf, 0, nbytes);
149 len -= nbytes;
150 length += nbytes;
H A DFileCacheImageOutputStream.java125 int nbytes = cache.read(b, off, len);
126 if (nbytes != -1) {
127 streamPos += nbytes;
129 return nbytes;
/openjdk7/hotspot/agent/src/os/bsd/
H A Dsalibelf.c51 size_t nbytes = hdr->e_phnum * hdr->e_phentsize; local
53 if ((phbuf = (ELF_PHDR*) malloc(nbytes)) == NULL) {
58 if (pread(fd, phbuf, nbytes, hdr->e_phoff) != nbytes) {
71 size_t nbytes = hdr->e_shnum * hdr->e_shentsize; local
73 if ((shbuf = (ELF_SHDR*) malloc(nbytes)) == NULL) {
78 if (pread(fd, shbuf, nbytes, hdr->e_shoff) != nbytes) {
/openjdk7/hotspot/agent/src/os/linux/
H A Dsalibelf.c50 size_t nbytes = hdr->e_phnum * hdr->e_phentsize; local
52 if ((phbuf = (ELF_PHDR*) malloc(nbytes)) == NULL) {
57 if (pread(fd, phbuf, nbytes, hdr->e_phoff) != nbytes) {
70 size_t nbytes = hdr->e_shnum * hdr->e_shentsize; local
72 if ((shbuf = (ELF_SHDR*) malloc(nbytes)) == NULL) {
77 if (pread(fd, shbuf, nbytes, hdr->e_shoff) != nbytes) {
/openjdk7/hotspot/src/share/vm/runtime/
H A Dicache.cpp81 void AbstractICache::invalidate_range(address start, int nbytes) { argument
89 if (nbytes == 0) {
93 // nbytes to an icache line count.
97 nbytes += line_offset;
99 call_flush_stub(start, round_to(nbytes, ICache::line_size) >>
H A Dicache.hpp64 static void invalidate_range(address start, int nbytes);
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/util/
H A DSharedNameTable.java103 int nbytes = Convert.chars2utf(cs, start, bytes, nc, len) - nc;
104 int h = hashValue(bytes, nc, nbytes) & hashMask;
107 (n.getByteLength() != nbytes ||
108 !equals(bytes, n.index, bytes, nc, nbytes))) {
114 n.length = nbytes;
117 this.nc = nc + nbytes;
118 if (nbytes == 0) {
H A DUnsharedNameTable.java83 int nbytes = Convert.chars2utf(cs, start, name, 0, len);
84 return fromUtf(name, 0, nbytes);
/openjdk7/jdk/test/javax/xml/crypto/dsig/
H A DSignatureValidator.java109 int nbytes;
111 while ((nbytes = is.read(buf, 0, buf.length)) != -1) {
112 md.update(buf, 0, nbytes);
/openjdk7/jdk/src/share/native/sun/awt/splashscreen/
H A Dsplashscreen_jpeg.c60 size_t nbytes; local
63 nbytes = src->stream->read(src->stream, src->buffer, INPUT_BUF_SIZE);
65 if (nbytes <= 0) {
72 nbytes = 2;
76 src->pub.bytes_in_buffer = nbytes;
/openjdk7/jdk/src/share/demo/jvmti/java_crw_demo/
H A Djava_crw_demo.c289 allocate(CrwClassImage *ci, int nbytes) argument
293 if ( nbytes <= 0 ) {
296 ptr = malloc(nbytes);
304 reallocate(CrwClassImage *ci, void *optr, int nbytes) argument
311 if ( nbytes <= 0 ) {
314 ptr = realloc(optr, nbytes);
322 allocate_clean(CrwClassImage *ci, int nbytes) argument
326 if ( nbytes <= 0 ) {
329 ptr = calloc(nbytes, 1);
764 ByteOffset nbytes local
779 ByteOffset nbytes = 0; local
799 ByteOffset nbytes = 0; local
872 ByteOffset nbytes = 0; local
894 ByteOffset nbytes = 0; local
922 ByteOffset nbytes; local
[all...]
/openjdk7/hotspot/src/os/windows/vm/
H A DperfMemory_windows.cpp103 int nbytes = ::_write(fd, addr, (unsigned int)remaining); local
104 if (nbytes == OS_ERR) {
112 remaining -= (size_t)nbytes;
113 addr += nbytes;
160 size_t nbytes = strlen(tmpdir) + strlen(perfdir) + strlen(user) + 3; local
161 char* dirname = NEW_C_HEAP_ARRAY(char, nbytes, mtInternal);
164 _snprintf(dirname, nbytes, "%s\\%s_%s", tmpdir, perfdir, user);
450 int nbytes = (int)strlen(PERFDATA_NAME) + (int)strlen(user) + 3; local
456 nbytes += UINT_CHARS;
457 char* name = NEW_C_HEAP_ARRAY(char, nbytes, mtInterna
471 size_t nbytes = strlen(dirname) + UINT_CHARS + 2; local
488 size_t nbytes = strlen(dirname) + strlen(filename) + 2; local
822 DWORD nbytes = GetLengthSid(token_buf->User.Sid); local
[all...]
/openjdk7/jdk/src/share/transport/socket/
H A DsocketTransport.c584 int nbytes = 0; local
585 while (nbytes < len) {
586 int res = dbgsysRecv(f, buf + nbytes, len - nbytes, 0);
590 break; /* eof, return nbytes which is less than len */
592 nbytes += res;
594 return nbytes;
600 int nbytes = 0; local
601 while (nbytes < len) {
602 int res = dbgsysSend(f, buf + nbytes, le
[all...]

Completed in 71 milliseconds

123