Skip to content

Commit

Permalink
Stop allocating so much in arena tests
Browse files Browse the repository at this point in the history
Android bots are OOMing.
  • Loading branch information
brson committed Jan 25, 2014
1 parent b85fe01 commit 2d27ad1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libextra/arena.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 ],
Expand Down

9 comments on commit 2d27ad1

@bors
Copy link
Contributor

@bors bors commented on 2d27ad1 Jan 25, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from brson
at brson@2d27ad1

@bors
Copy link
Contributor

@bors bors commented on 2d27ad1 Jan 25, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging brson/rust/smallerarenas = 2d27ad1 into auto

@bors
Copy link
Contributor

@bors bors commented on 2d27ad1 Jan 25, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

brson/rust/smallerarenas = 2d27ad1 merged ok, testing candidate = 11250486

@bors
Copy link
Contributor

@bors bors commented on 2d27ad1 Jan 26, 2014

@bors
Copy link
Contributor

@bors bors commented on 2d27ad1 Jan 26, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from brson
at brson@2d27ad1

@bors
Copy link
Contributor

@bors bors commented on 2d27ad1 Jan 26, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging brson/rust/smallerarenas = 2d27ad1 into auto

@bors
Copy link
Contributor

@bors bors commented on 2d27ad1 Jan 26, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

brson/rust/smallerarenas = 2d27ad1 merged ok, testing candidate = e139b49

@bors
Copy link
Contributor

@bors bors commented on 2d27ad1 Jan 26, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on 2d27ad1 Jan 26, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = e139b49

Please sign in to comment.