Mercurial > hg > graal-compiler
comparison src/share/vm/libadt/port.hpp @ 14422:2b8e28fdf503
Merge
author | kvn |
---|---|
date | Tue, 05 Nov 2013 17:38:04 -0800 |
parents | bdd155477289 9758d9f36299 |
children | 4ca6dc0799b6 |
comparison
equal
deleted
inserted
replaced
14421:3068270ba476 | 14422:2b8e28fdf503 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
159 extern void *safe_malloc (const char *file, unsigned line, unsigned size); | 159 extern void *safe_malloc (const char *file, unsigned line, unsigned size); |
160 extern void safe_free (const char *file, unsigned line, void *ptr); | 160 extern void safe_free (const char *file, unsigned line, void *ptr); |
161 extern void *safe_calloc (const char *file, unsigned line, unsigned nitems, unsigned size); | 161 extern void *safe_calloc (const char *file, unsigned line, unsigned nitems, unsigned size); |
162 extern void *safe_realloc(const char *file, unsigned line, void *ptr, unsigned size); | 162 extern void *safe_realloc(const char *file, unsigned line, void *ptr, unsigned size); |
163 extern char *safe_strdup (const char *file, unsigned line, const char *src); | 163 extern char *safe_strdup (const char *file, unsigned line, const char *src); |
164 inline void *operator new( size_t size ) { return malloc(size); } | 164 inline void *operator new( size_t size ) throw() { return malloc(size); } |
165 inline void operator delete( void *ptr ) { free(ptr); } | 165 inline void operator delete( void *ptr ) { free(ptr); } |
166 #endif | 166 #endif |
167 | 167 |
168 //----------------------------------------------------------------------------- | 168 //----------------------------------------------------------------------------- |
169 // And now, the bit-size-specified integer sizes | 169 // And now, the bit-size-specified integer sizes |
170 typedef signed char int8; | 170 typedef signed char int8; |