зеркало из https://github.com/github/ruby.git
hash.c no longer needs the transient heap
This commit is contained in:
Родитель
78ca085785
Коммит
3168f618cb
7
hash.c
7
hash.c
|
@ -44,7 +44,6 @@
|
||||||
#include "ruby/util.h"
|
#include "ruby/util.h"
|
||||||
#include "ruby_assert.h"
|
#include "ruby_assert.h"
|
||||||
#include "symbol.h"
|
#include "symbol.h"
|
||||||
#include "transient_heap.h"
|
|
||||||
#include "ruby/thread_native.h"
|
#include "ruby/thread_native.h"
|
||||||
#include "ruby/ractor.h"
|
#include "ruby/ractor.h"
|
||||||
#include "vm_sync.h"
|
#include "vm_sync.h"
|
||||||
|
@ -382,12 +381,10 @@ typedef st_index_t st_hash_t;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* RHASH_AR_TABLE_P(h):
|
* RHASH_AR_TABLE_P(h):
|
||||||
* * as.ar == NULL or
|
* RHASH_AR_TABLE points to ar_table.
|
||||||
* as.ar points ar_table.
|
|
||||||
* * as.ar is allocated by transient heap or xmalloc.
|
|
||||||
*
|
*
|
||||||
* !RHASH_AR_TABLE_P(h):
|
* !RHASH_AR_TABLE_P(h):
|
||||||
* * as.st points st_table.
|
* RHASH_ST_TABLE points st_table.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define RHASH_AR_TABLE_MAX_BOUND RHASH_AR_TABLE_MAX_SIZE
|
#define RHASH_AR_TABLE_MAX_BOUND RHASH_AR_TABLE_MAX_SIZE
|
||||||
|
|
Загрузка…
Ссылка в новой задаче