Skip to content
This repository was archived by the owner on Jun 8, 2022. It is now read-only.
This repository was archived by the owner on Jun 8, 2022. It is now read-only.

Memory leak #36

@nbkolchin

Description

@nbkolchin

Linux-64bit, GO1.0.3

Code: https://gist.github.com/nbkolchin/5143162

Command:
$ for i in seq 0 4 ; do touch $i ; done

Output:

  • 2013/03/12 17:51:36 363416 385912 2686976 364 96
  • 2013/03/12 17:51:36 363608 386976 2686976 387 115
  • 2013/03/12 17:51:36 363784 388136 2686976 408 135
  • 2013/03/12 17:51:36 363832 389056 2686976 428 154
  • 2013/03/12 17:51:36 363880 389976 2686976 448 173

On each loop iteration, the amount of AllocatedAndUsed memory increases and never goes down. In "real life" application, it exceeded 1G.

"Reproducable" on MacOSX, but as I understand this is 'expected' behaviour on that platform.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions