Code Monkey home page Code Monkey logo

Comments (7)

mbxx avatar mbxx commented on July 22, 2024

Thanks for bringing this up. I'm not sure what to do about this since I don't think there's a number that's big enough to make the test useful and small enough that it won't cause an exception on some system. The right answer may just be to disable the test. Let me think about this for a bit.

from abseil-cpp.

jorgbrown avatar jorgbrown commented on July 22, 2024

Is it the string constructor crashing:
string s(1ULL << 31, 'x');

Or is it the push_back call:
s.push_back('-');

from abseil-cpp.

vsrinivas avatar vsrinivas commented on July 22, 2024

String constructor.

from abseil-cpp.

jorgbrown avatar jorgbrown commented on July 22, 2024

What is the output of "ulimit -a" ?
What compiler version are you using?

from abseil-cpp.

zhangxy988 avatar zhangxy988 commented on July 22, 2024

@mbxx: Any update on this issue?

from abseil-cpp.

mbxx avatar mbxx commented on July 22, 2024

@jorgbrown submitted a change that is now in the public release to cut the overall amount of memory used by the test by a factor of 3. The trouble is, it eliminates the extra memory allocation done by the aforementioned push_back call, not the memory allocation cone by the constructor. So I suspect this won't fix the problem for @vsrinivas.

@vsrinivas, by any chance would you mind grabbing the latest release to see if it fixes the issue for you?

from abseil-cpp.

mbxx avatar mbxx commented on July 22, 2024

Closing this issue since the overall memory consumption was dramatically reduced.

@vsrinivas, please feel free to reopen this if you're still having a problem. The next step would be disabling the test

from abseil-cpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.