mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-25 06:03:16 +00:00
Stop allocating so much in arena tests
Android bots are OOMing.
This commit is contained in:
parent
b85fe01b94
commit
2d27ad19fa
@ -504,7 +504,7 @@ mod test {
|
||||
#[test]
|
||||
pub fn test_pod() {
|
||||
let arena = TypedArena::new();
|
||||
for _ in range(0, 1000000) {
|
||||
for _ in range(0, 100000) {
|
||||
arena.alloc(Point {
|
||||
x: 1,
|
||||
y: 2,
|
||||
@ -558,7 +558,7 @@ mod test {
|
||||
#[test]
|
||||
pub fn test_nonpod() {
|
||||
let arena = TypedArena::new();
|
||||
for _ in range(0, 1000000) {
|
||||
for _ in range(0, 100000) {
|
||||
arena.alloc(Nonpod {
|
||||
string: ~"hello world",
|
||||
array: ~[ 1, 2, 3, 4, 5 ],
|
||||
|
Loading…
Reference in New Issue
Block a user