summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-07-02 13:07:26 +0000
committerNicholas Clark <nick@ccl4.org>2005-07-02 13:07:26 +0000
commit77354fb48907e3618a62531aa2e90772ef4375d9 (patch)
treee0d266e831c4ff7e4dd2ce0c7429e0e44744e193 /perl.h
parent9320a0378277d341c9c126313f5ba5a16b26450d (diff)
downloadperl-77354fb48907e3618a62531aa2e90772ef4375d9.tar.gz
Don't inline offer_nice_chunk, as it's rarely called.
p4raw-id: //depot/perl@25047
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/perl.h b/perl.h
index 22d41f16fb..bb8f217fa3 100644
--- a/perl.h
+++ b/perl.h
@@ -4753,26 +4753,6 @@ typedef struct am_table_short AMTS;
#define PERL_ALLOC_CHECK(p) NOOP
#endif
-/*
- * nice_chunk and nice_chunk size need to be set
- * and queried under the protection of sv_mutex
- */
-#define offer_nice_chunk(chunk, chunk_size) STMT_START { \
- void *new_chunk; \
- U32 new_chunk_size; \
- LOCK_SV_MUTEX; \
- new_chunk = (void *)(chunk); \
- new_chunk_size = (chunk_size); \
- if (new_chunk_size > PL_nice_chunk_size) { \
- Safefree(PL_nice_chunk); \
- PL_nice_chunk = (char *) new_chunk; \
- PL_nice_chunk_size = new_chunk_size; \
- } else { \
- Safefree(chunk); \
- } \
- UNLOCK_SV_MUTEX; \
- } STMT_END
-
#ifdef HAS_SEM
# include <sys/ipc.h>
# include <sys/sem.h>